#include "Association.h"

Association::Association(QString _uid_group,QString _name)
{
    this->uid_group = _uid_group;
    this->name =_name;
    qDebug()<<"产生一个gid为"<<this->uid_group<<"的ass";
}

bool Association::isAFriend()
{
    return !(this->uid_member_of_this.count()>1);
}
void Association::addUsr(QString _name, QString _uid)
{
    UsrInfo info;
    info.name = _name;
    info.uid =_uid;
    uid_member_of_this.push_back(info);
    qDebug()<<"这个群里有"<<uid_member_of_this.count()<<"个人";
}
